<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="zh_parsen/fzr_name"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>" />
<input type="hidden" name="zh_parsen/fzr_mobile"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>" />
<input type="hidden" name="zh_parsen/fzr_tel"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>" />
<input type="hidden" name="zh_parsen/fzr_email"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>" />
<div class="t_bar">项目基本情况</div>
<table class="t_css" width="100%" id="table_01">
    <col style="width: 20%" />
    <col style="width: 30%" />
    <col style="width: 20%" />
    <col style="width: 30%" />

    <tr>
        <td align="right"><span class="color_red">*</span>申请国合基地名称：</td>
        <td colspan="5">
            <input type='text' name='proposal/zh_title' id='zh_title' style="width: 80%"
                class=" required" maxlength="50"
                value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="申请国合基地名称">
        </td>
    </tr>
     <tr>
        <td align="right"><span class="color_red">*</span>申请国合基地类别：</td>
        <td colspan="5"  align="center"  >
             <c:set var="cooper_base_type"><x:out select="$xmlData/data/proposal/cooper_base_type" /></c:set>
			  <cpt:checkbox key="cooper_base_type" name="cooper_base_type" value="${cooper_base_type }" width="178px;"  repeatColumn="3" tagType="radio" ></cpt:checkbox>
		  	  <input type="hidden" id="cooper_base_type_value" name="proposal/cooper_base_type_value"  class="required" 
		  	   value="<x:out select="$xmlData/data/proposal/cooper_base_type_value" />" label="申请国合基地类别">
		  	  <input type="hidden" name="proposal/cooper_base_type_name" value="<x:out select="$xmlData/data/proposal/cooper_base_type_name" />">
        </td>
    </tr>
    
    <tr>
    <td align="right"><span class="color_red">*</span>归口管理部门：</td>
     <td >
            <c:set var="recomend_org">{'id':'<x:out
                    select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out
                    select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
            <cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang "
                readonly="true" value="${recomend_org}" label="归口管理部门" id="recomend_org"
                onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true"
                onClick="initTreeValueExt" />
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"
                class="required"
                value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
            <input type="hidden" name="proposal/recomend_org_name"
                value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
       </td>
        <td align="right" >申报日期：</td>
            <td>
                <c:set var="submit_date">
                    <x:out select="$xmlData/data/proposal/submit_date" />
                </c:set>
                <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
            </td>
    </tr>
    <tr>
    	<td align="right" >国合基地负责人 ：</td>
        <td >
            <span  name="proposal/fzr_psnname" maxlength="11"   id="rogcode" 
               ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
        </td>
        <td align="right"><span class="color_red">*</span>职务：</td>
        <td >
            <input type="text" label="国合基地负责人职务" name="proposal/fzr_psnjob"
                class="required "  maxlength="20"
                value="<x:out select="$xmlData/data/proposal/fzr_psnjob" />">
        </td>
    </tr>
    <tr >
       <td align="right"><span class="color_red">*</span>联系人姓名：</td>
        <td >
             <input type="text" label="联系人姓名" name="proposal/contact_psn_cname"
                class=" required" maxlength="20"
                value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />">
        </td>
        <td align="right"><span class="color_red">*</span>职务：</td>
        <td>
            <input type="text" label="联系人职务" name="proposal/contact_psn_job"
                class=" required " maxlength="20"
                value="<x:out select="$xmlData/data/proposal/contact_psn_job" />">
        </td>
    </tr>
    <tr >
       <td align="right"><span class="color_red">*</span>通讯地址：</td>
        <td >
             <input type="text" label="联系人通讯地址" name="proposal/contact_psn_postal_address"
                class=" required" maxlength="50"
                value="<x:out select="$xmlData/data/proposal/contact_psn_postal_address" />">
        </td>
        <td align="right"><span class="color_red">*</span>邮政编码：</td>
        <td>
            <input type="text" label="联系人邮政编码" name="proposal/contact_psn_postal_code" class=" required" maxlength="6"
                onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')"
                value="<x:out select="$xmlData/data/proposal/contact_psn_postal_code" />">
        </td>
    </tr>
    <tr >
       <td align="right"><span class="color_red">*</span>电话：</td>
        <td >
             <input type="text" label="联系人电话" name="proposal/contact_psn_tel"
                class=" required" maxlength="30"
                value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />">
        </td>
        <td align="right"><span class="color_red">*</span>手机：</td>
        <td>
            <input type="text" label="联系人手机" name="proposal/contact_psn_mobile"
                class=" required mobile" onfocus="InitInput.setNumber(this,11,0,0)"
                maxlength="11"
                value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />">
        </td>
    </tr>
    <tr>
       <td align="right"><span class="color_red">*</span>Email：</td>
        <td >
            <input type="text" label="联系人Email" name="proposal/contact_psn_email"
                class="required email" maxlength="50"
                value="<x:out select="$xmlData/data/proposal/contact_psn_email" />">
        </td>
        <td align="right"><span class="color_red">*</span>传真：</td>
        <td>
            <input type="text" label="联系人传真" name="proposal/contacts_facsimile"
                class="required "  maxlength="20" 
                value="<x:out select="$xmlData/data/proposal/contacts_facsimile" />">
        </td>
    </tr>
    <tr>
       <td align="right"><span class="color_red">*</span>网站：</td>
        <td colspan="3">
            <input type="text" label="网站" name="proposal/contact_psn_web"
                class="required " maxlength="80" style="width: 80%;"
                value="<x:out select="$xmlData/data/proposal/contact_psn_web" />">
        </td>
    </tr>
    </table>
     <div class="t_bar"><span class="color_red">*</span>国合基地国际科技合作管理人员 </div>
	<table class="t_css" width="100%" id="table_02" >
    	<tr  align="center">
			<td width="30%">负责人姓名</td>
			<td width="30%">职务</td>
			<td width="30%">联系电话</td>
		</tr>
		<tr  align="center">
			<td>
			<input type="text" label="国合基地国际科技合作管理人员-->负责人姓名" name="proposal/head_management_name"
                class="required " maxlength="20" style="width:80%" 
                value="<x:out select="$xmlData/data/proposal/head_management_name" />">
			</td>
			<td>
			<input type="text" label="国合基地国际科技合作管理人员-->负责人职务" name="proposal/head_management_job"
                class="required" maxlength="20" style="width:80%" 
                value="<x:out select="$xmlData/data/proposal/head_management_job" />">
			</td>
			<td>
			<input type="text" label="国合基地国际科技合作管理人员-->负责人联系电话" name="proposal/head_management_mobile"  class="required"
                maxlength="30" style="width:80%" 
                value="<x:out select="$xmlData/data/proposal/head_management_mobile" />">
			</td>
		</tr>
		</table>
	   
<table id="eq_table22"  class="table_06" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead>
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="30%">专职人员姓名</th>
						<th class="TblHead" align="center"  width="30%">职务</th>
						<th class="TblHead" align="center"  width="30%">联系电话</th>
					</tr>
			</thead>
    <tbody>
        <tr style="display: none">
			<td align="center"><input type="radio" name="selMileStones" style="border:0px;background-color:white"></td>
			
			<td align="center"><span name="proposal|hatchs2|hatch[0]@seq_no">[index]</span></td>
			
			<td align="center"><input type="text" name="proposal|hatchs2|hatch[0]|professional_name" class="input_text required" maxlength="20" 
			style="width: 80%" label="专职人员姓名" value=""/></td>
			
			<td align="center"><input type="text" name="proposal|hatchs2|hatch[0]|professional_job" class="input_text required" maxlength="20" 
			style="width: 80%" label="专职人员职务" value=""/></td>
			
			<td align="center"><input type="text" name="proposal|hatchs2|hatch[0]|professional_tel" 
			 class="input_text required" maxlength="30" 
			style="width: 80%" label="专职人员联系电话" value=""/></td>
	        
		</tr>
			  <c:set value="0" var="index" scope="page" />
	      <x:forEach select="$xmlData/data/proposal/hatchs2/hatch" var="list2">
			<c:choose>
				<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
				<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
			</c:choose>
		<tr>
			<td align="center"><input type="radio" class="radiobutton" name="selMileStones" style="border:0px;background-color:white"></td>
			
			<td align="center"><span name="proposal/hatchs2/hatch[${flag}${index}]@seq_no"><x:out select="$list2/@seq_no" /></span></td>
			
			<td align="center"><input type="text" name="proposal/hatchs2/hatch[${flag}${index}]/professional_name" class="input_text required" maxlength="20"
				style="width: 80%" label="专职人员姓名" value="<x:out select="$list2/professional_name"/>"/></td>
			
			<td align="center"><input type="text" name="proposal/hatchs2/hatch[${flag}${index}]/professional_job" class="input_text required" maxlength="20"
				style="width: 80%" label="专职人员职务" value="<x:out select="$list2/professional_job"/>"/></td>
			<td align="center"><input type="text" name="proposal/hatchs2/hatch[${flag}${index}]/professional_tel" class="input_text required" maxlength="30"
				style="width: 80%" label="专职人员联系电话" value="<x:out select="$list2/professional_tel"/>"/></td>
		</tr>
		   <c:set value="${index+1}" var="index" scope="page" />
		   </x:forEach>
	</tbody> 
		<script type="text/javascript">
			showAllDateTag("eq_table22");
	</script>
</table>
<table width="98%" align="center">
	<tr>
		<td><input class="button_02" name="cmdAddbefore"type=button value="添加" onclick="if(checkTabLimit('eq_table22',999,'投保情况最多只能填写999条')){addNewRow('eq_table22');showDateTag('eq_table22');}try{top.resizeFrame();}catch(e){};">
			<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('eq_table22','selMileStones');"> 
			<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('eq_table22','selMileStones');">
		    <input class="button_02" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('eq_table22','记录');autoCalFund('eq_table22','money','total_baoe');autoCalFund('eq_table22','cost','total_baofei');">
		</td>
	</tr>
</table>
	
	<table class="t_css" width="100%" id="table_03" >
      	<col style="width: 20%" />
	    <col style="width: 20%" />
	    <col style="width: 10%" />
	    <col style="width: 20%" />
	    <col style="width: 10%" />
	    <col style="width: 20%" />
	    
	    <tr>
	        <td align="right"><span class="color_red">*</span>机构类型 ：</td>
	        <td colspan="5"  align="center"  >
	             <c:set var="tech_business_1"><x:out select="$xmlData/data/proposal/tech_business_1" /></c:set>
				  <cpt:checkbox key="tech_business_1" name="tech_business_1" value="${tech_business_1 }" width="178px;"  repeatColumn="4" tagType="radio" ></cpt:checkbox>
			  	  <input type="hidden" id="tech_business_1_value" name="proposal/tech_business_1_value"  class="required"  
			  	  value="<x:out select="$xmlData/data/proposal/tech_business_1_value" />" label="机构类型 ">
			  	  <input type="hidden" name="proposal/tech_business_1_name" value="<x:out select="$xmlData/data/proposal/tech_business_1_name" />">
	        </td>
	    </tr>
	    
	    <tr>
	        <td align="right"><span class="color_red">*</span>研发类型：</td>
	        <td colspan="5"  align="center"  >
	             <c:set var="research_type2"><x:out select="$xmlData/data/proposal/research_type2" /></c:set>
				  <cpt:checkbox key="research_type2" name="research_type2" value="${research_type2 }" width="178px;" repeatColumn="4"  tagType="radio" ></cpt:checkbox>
			  	  <input type="hidden" id="research_type2_value" name="proposal/research_type2_value"  class="required" 
			  	   value="<x:out select="$xmlData/data/proposal/research_type2_value" />" label="研发类型 ">
			  	  <input type="hidden" name="proposal/research_type2_name" value="<x:out select="$xmlData/data/proposal/research_type2_name" />">
	        </td>
	    </tr>
    
    <tr>
       <td align="right"><span class="color_red">*</span>所属专业领域：</td>
        <td >
            <input type="text" label="所属专业领域" name="proposal/specialized_field"
                class=" required " maxlength="50" 
                value="<x:out select="$xmlData/data/proposal/specialized_field" />" >
        </td>
        <td align="right"><span class="color_red">*</span>学科：</td>
        <td>
            <input type="text" label="学科" name="proposal/major_subject"
                class=" required " maxlength="50" 
                value="<x:out select="$xmlData/data/proposal/major_subject" />">
        </td>
       	<td align="right"><span class="color_red">*</span>方向：</td>
        <td>
        	<input type="text" label="方向" name="proposal/major_direction"
                class=" required " maxlength="50" 
                value="<x:out select="$xmlData/data/proposal/major_direction" />">
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>建设实施方案简述：<br />（限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/prj_implementation_plan" class="input_textarea required maxlength:1000"
                label="建设实施方案简述" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/prj_implementation_plan" /></textarea>
            <input type="hidden" name="proposal/prj_implementation_plan_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>机构情况简介：<br />（包括研究领域、研究实力、成果影响等，限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/institutional_situation" class="input_textarea required maxlength:1000"
                label="机构情况简介" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/institutional_situation" /></textarea>
            <input type="hidden" name="proposal/institutional_situation_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>近5年承担科技部国家国际科技合作专项项目、其他资金渠道的国际科技合作项目及国家科技计划项目情况：<br />（分行撰写，包括项目名称、编号、经费投入、执行时间、承担单位；如没有请写“无”，下同，限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/prj_technology_plan" class="input_textarea required maxlength:1000"
                label="近5年承担科技部国家国际科技合作专项项目、其他资金渠道的国际科技合作项目及国家科技计划项目情况" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/prj_technology_plan" /></textarea>
            <input type="hidden" name="proposal/prj_technology_plan_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>近5年取得的主要国际科技合作成果：<br />（并评述合作成果的重要价值和意义，限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/cooperative_achievements" class="input_textarea required maxlength:1000"
                label="近5年取得的主要国际科技合作成果" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/cooperative_achievements" /></textarea>
            <input type="hidden" name="proposal/cooperative_achievements_hidden" value=""/>
        </td>
    </tr>
    <tr>
       <td align="right">
          <span class="color_red">*</span>机构从事国际技术转移工作的主要情况 ：<br />（限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/international_transfer" class="input_textarea required maxlength:1000"
                label="机构从事国际技术转移工作的主要情况" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/international_transfer" /></textarea>
            <input type="hidden" name="proposal/international_transfer_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>简述国际科技合作的目标与管理方式：<br />（限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/cooperative_goal" class="input_textarea required maxlength:1000"
                label="简述国际科技合作的目标与管理方式" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/cooperative_goal" /></textarea>
            <input type="hidden" name="proposal/cooperative_goal_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">
          <span class="color_red">*</span>简述在所属专业领域和区域国际科技合作方面发挥的引领示范<br>作用：<br />（限1000字）
        </td>
        <td colspan="5">
            <textarea name="proposal/prj_demonstration_role" class="input_textarea required maxlength:1000"
                label="简述在所属专业领域和区域国际科技合作方面发挥的引领示范作用" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/prj_demonstration_role" /></textarea>
            <input type="hidden" name="proposal/prj_demonstration_role_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>主要合作方式（可多选）：</td>
        <td colspan="5"  align="center"  >
             <c:set var="copper_way_value"><x:out select="$xmlData/data/proposal/copper_way_value" /></c:set>
          	<label> <input type="checkbox" class="do"  id=""  style="vertical-align: middle; float: left;" name="copper_way"  value="01" />
          		<span style="vertical-align: middle;float: left; =">人员交流互访  </span></label> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			
			<label> <input type="checkbox" class="do" id=""  style="margin-left: 200px;vertical-align: middle;float: left;" name="copper_way"  value="02" />
				<span style="=vertical-align: middle;float: left;">引进国外人才  </span></label> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            
 			<label> <input type="checkbox" class="do" id=""  style="margin-left: 200px;vertical-align: middle;float: left;" name="copper_way" value="03" />
				<span style="=vertical-align: middle;float: left;">联合培养人才  </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
			<label> <input type="checkbox" class="do" id=""  style="vertical-align: middle;float: left;" name="copper_way" value="04" />
				<span style="=vertical-align: middle;float: left;">技术转移   </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				        
            <label> <input type="checkbox" class="do" id=""  style="margin-left: 224px;vertical-align: middle;float: left;" name="copper_way" value="05" />
				<span style="=vertical-align: middle;float: left;">信息资料交流  </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
				
			<label> <input type="checkbox" class="do" id=""  style="margin-left: 200px;vertical-align: middle;float: left;" name="copper_way" value="06" />
				<span style="=vertical-align: middle;float: left;">合作研发  </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
			<label> <input type="checkbox" class="do" id=""  style="vertical-align: middle;float: left;margin-top: 4px;" name="copper_way" value="07" />
				<span style="=vertical-align: middle;float: left;margin-top: 4px;">设立联合研发机构/平台/网络  </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
			
			<label> <input type="checkbox" class="do" id="other04" onclick="changeFhq()" style="margin-left: 121px;vertical-align: middle;float: left; margin-top: 4px;" name="copper_way" label="其它 " value="08" />
				<span style="=vertical-align: middle;float: left;margin-top: 4px;">其他</span></label>	      
				     
            <c:if test="${fn:contains(copper_way_value, '08')}">
            <input type="text" id="copper_way_other" name="proposal/copper_way_other" maxlength="20" label="主要合作方式-->其他"
             style="float: left; display:block; vertical-align:middle;" value="<x:out select="$xmlData/data/proposal/copper_way_other" />"/>
             </c:if>
              <c:if test="${not fn:contains(copper_way_value, '08')}">
            <input type="text" id="copper_way_other" name="proposal/copper_way_other" maxlength="20" label="主要合作方式-->其他"  
             style="float: left; display:none; vertical-align:middle; "  value="<x:out select="$xmlData/data/proposal/copper_way_other" />"/>
             </c:if>
            <input type="hidden" id="copper_way_value"  name="proposal/copper_way_value" type="text" label="主要合作方式"  class="required"  
            value="<x:out select="$xmlData/data/proposal/copper_way_value" />" />
            <input type="hidden" name="proposal/copper_way_name" value="<x:out select="$xmlData/data/proposal/copper_way_name" />" />
        </td>
    </tr>
</table>

    <div class="t_bar"><span class="color_red">*</span>境外主要合作伙伴 </div>
<table id="eq_table11" class="table05" width="100%"	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="30%">国别</th>
						<th class="TblHead" align="center"  width="30%">机构名称<br/>（中英文，具体到科研机构实体、大学院系，企业，限100字）</th>
						<th class="TblHead" align="center"  width="30%">签署的科技合作协议名称、时间、有效期及主要内容<br/>（如未签署协议请注明，限1000字） </th>
					</tr>
			</thead>
	<tbody>
		<tr style="display: none">
			<td align="center"><input type="radio" name="selMileStones" style="border:0px;background-color:white"></td>
		
			<td align="center"><span name="proposal|hatchs1|hatch[0]@seq_no">[index]</span></td>
			
			<td align="left"><input type="text" name="proposal|hatchs1|hatch[0]|partner_country" class="input_text required" maxlength="100" 
			style="width: 80%" label="国别" value=""/></td>

	        <td align="left"><input id="regist_date[0][0]" name="proposal|hatchs1|hatch[0]|partner_institution_name" value=""class="input_text required" 
	        style="width: 80%;" label="机构名称" maxlength="100" /></td>
	        
	        <td align="left">
	         <textarea name="proposal|hatchs1|hatch[0]|partner_protocol" class="input_textarea required maxlength:1000"
                label="签署的科技合作协议名称、时间、有效期及主要内容" style="width: 80%" rows="4"></textarea>
            <input type="hidden" name="proposal|hatchs1|hatch[0]|partner_protocol_hidden" value=""/></td>
	 </tr>

      <c:set value="0" var="index" scope="page" />
      <x:forEach select="$xmlData/data/proposal/hatchs1/hatch" var="list1">
      
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr>
			<td align="center"><input type="radio" class="radiobutton" name="selMileStones" style="border:0px;background-color:white"></td>
			<td align="center"><span name="proposal/hatchs1/hatch[${flag}${index}]@seq_no"><x:out select="$list1/@seq_no" /></span></td>
			<td align="left"><input type="text" name="proposal/hatchs1/hatch[${flag}${index}]/partner_country" class="input_text required"
			 maxlength="100"  style="width: 80%" label="国别" value="<x:out select="$list1/partner_country" />"/></td>
				    
			<td align="left"><input type="text" name="proposal/hatchs1/hatch[${flag}${index}]/partner_institution_name" class="input_text required"
			 maxlength="100" style="width: 80%" label="机构名称" value="<x:out select="$list1/partner_institution_name" />"/></td>
			
			<td align="left">
			<textarea name="proposal/hatchs1/hatch[${flag}${index}]/partner_protocol" class="input_textarea required maxlength:1000"
                label="签署的科技合作协议名称、时间、有效期及主要内容" style="width: 80%" rows="4"><x:out select="$list1/partner_protocol"/></textarea>
            <input type="hidden" name="proposal/hatchs1/hatch[${flag}${index}]/partner_protocol_hidden" value=""/></td>
		</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
		<script type="text/javascript">
			showAllDateTag("eq_table11");
	</script>
</table>

<table width="98%" align="center">
	<tr>
		<td><input class="button_02" name="cmdAddbefore"type=button value="添加" onclick="if(checkTabLimit('eq_table11',999,'最多只能填写999条记录')){addNewRow('eq_table11');showDateTag('eq_table11');}try{top.resizeFrame();}catch(e){};">
			<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('eq_table11','selMileStones');"> 
			<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('eq_table11','selMileStones');">
		    <input class="button_02" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('eq_table11','记录');autoCalFund('eq_table11','money','total_baoe');autoCalFund('eq_table11','cost','total_baofei');">
		</td>
	</tr>
</table>
	<table class="t_css" width="100%" style="text-align: center;" id="table_04">
    <col style="width: 20%;" />
    <col style="width: 80%;" />
    <tr>
        <td align="right">境外合作伙伴的技术特点和优势：<br />（分行撰写，限1000字）
        </td>
        <td>
            <textarea name="proposal/technical_characteristics" class="input_textarea required maxlength:1000"
                label="境外合作伙伴的技术特点和优势" style="width: 98%" rows="9"><x:out select="$xmlData/data/proposal/technical_characteristics" /></textarea>
            <input type="hidden" name="proposal/technical_characteristics_hidden" value=""/>
        </td>
    </tr>
    <tr>
        <td align="right">境外合作伙伴的投入及合作机制：<br />（分行撰写，限1000字）
        </td>
        <td>
            <textarea name="proposal/cooperation_mechanism" class="input_textarea required maxlength:1000"
                label="境外合作伙伴的投入及合作机制" style="width: 98%" rows="9"><x:out
                    select="$xmlData/data/proposal/cooperation_mechanism" /></textarea>
            <input type="hidden" name="proposal/cooperation_mechanism_hidden" value=""/>
        </td>
    </tr>
</table>
<script type="text/javascript">
$('#topic_level1_year1_count,#topic_level1_year2_count,#topic_level1_year3_count').change(function(){
	getTotalCount('topic_level1_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level1_year1_fund,#topic_level1_year2_fund,#topic_level1_year3_fund').change(function(){
	getTotalCount('topic_level1_','year1_fund,year2_fund,year3_fund','total_fund',true);
});
$('#topic_level2_year1_count,#topic_level2_year2_count,#topic_level2_year3_count').change(function(){
	getTotalCount('topic_level2_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level2_year1_fund,#topic_level2_year2_fund,#topic_level2_year3_fund').change(function(){
	getTotalCount('topic_level2_','year1_fund,year2_fund,year3_fund','total_fund',true);
});
$('#topic_level3_year1_count,#topic_level3_year2_count,#topic_level3_year3_count').change(function(){
	getTotalCount('topic_level3_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level3_year1_fund,#topic_level3_year2_fund,#topic_level3_year3_fund').change(function(){
	getTotalCount('topic_level3_','year1_fund,year2_fund,year3_fund','total_fund',true);
});

/*
----------------------by zk
        描述:计算数值总数
        参数prefix:公共的id开头
        参数count:需要加的数的id结尾     以,分割
        参数total:总数id结尾
        参数isDeciaml:是否为小数 默认为false
*/
function getTotalCount(prefix,count,total,isDecimal){
  var defaultIsDecimal = false;//默认为整数
  if(isDecimal==null){
        isDecimal = defaultIsDecimal;
  }
  var numStr = count.split(',');
  var totalCount = 0;//总数
  if(!isDecimal){
        for ( var int = 0; int < numStr.length; int++) {
             var num = $('#'+prefix+numStr[int]).val();
             if(!$.isNumeric(num))
                  num = "0";
             totalCount += parseInt(num);
       }
  }else {
     for ( var int = 0; int < numStr.length; int++) {
         var num = $('#'+prefix+numStr[int]).val();
         if(!$.isNumeric(num))
             num = "0";
         totalCount += parseFloat(num);
     }
     totalCount = ((totalCount/100)*100).toFixed(2);
  }
  if(totalCount == 0){
        $('#'+prefix+total).val("");
  }else {
        $('#'+prefix+total).val(totalCount);
  }
}
$(function(){
	 $("#table_1").find("tr:even").addClass("li_1");
	 $("#table_1").find("tr:odd").addClass("li_2");
});
function changeFhq(){
	if($("#copper_way_other").css("display")=="none"){
		$("#copper_way_other").show();
		$("#copper_way_other").css('border','1px solid #A1C0DC');
		$("#copper_way_other").addClass("required");
	}else{
		$("#copper_way_other").hide();
		$("#copper_way_other").removeClass();
		$("#copper_way_other").val(" ");
	}
}





function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
}
function autoCalFund(tabid,endName,targetId){
	 var num=0.00 ;
	 $("#"+tabid).find("tr td input[name$="+endName + " ]").each(function(){
		if( $(this).val() =='' ||$(this).val() ==undefined )	{
			return  ; 
		}
		num =num*10000 +parseFloat($(this).val())*10000  ;
		num =num/10000 ;
	 });
	 $("#"+targetId).val(formatNumberAutoOther(num.toString(), 9, 4, 2));    
}
</script>	